package systemRouter

import (
	"CommonsProject/controller/systemController"
	"CommonsProject/repository/systemRepository"
	"CommonsProject/service/commonsService"
	"github.com/gin-gonic/gin"
	"gorm.io/gorm"
)

func registerCommonsController(engine *gin.Engine, db *gorm.DB) {
	(&systemController.CommonsController{
		Service: &commonsService.CommunalService{
			UserRepository: &systemRepository.SysUserRepository{DB: db},
		},
	}).Register(engine)
}
